<?php
/**
 * Create By: PhpStorm
 * User: yihua
 * File: GetAllUser.php
 * Date: 2017/1/22
 * Time: 1:20
 */
namespace app\home\model\page\user;

use app\api\model\dao\UserAccount;
use app\library\PageBase;


class GetAllUser extends PageBase
{
    public function __construt()
    {
        parent::__construct();
    }

    public function excute($param)
    {
        $ret = $this->checkToken($param);
        if (false === $ret) {
            header('Location:/home/loginpage');
            exit;
        }

        $objAccount = new UserAccount();
        return $objAccount->getAllUserAccount();

        //$this->data = $data;
        //return $this->getRes();
    }
}